package com.corpdata.app.contract.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.corpdata.app.contract.entity.ContractStation;
import com.corpdata.core.base.BaseMapper;

/**
 * 合同分区关联 持久层接口
 * @author wu
 * @email 64088839@qq.com
 * @date 2018-07-18 16:44:22
 * 
 */
public interface ContractStationMapper extends BaseMapper<ContractStation>{

	int modifyFlag(Map<String, String> params);
	//根据合同和分区删除关联
	int deleteByPartition(@Param("partitionId")String partitionId,@Param("contractId") String contractId);
	//查询合同下的工位id 
	List<String> selectByContract(String contractId);
	//删除临时数据
	@Delete("DELETE from contract_station WHERE flag = 0")
	int delTemporaryData();
}
